package cn.zhl.设计模式.适配器.classadapter;

/**
 * @program: demos
 * @description: 类适配器继承被适配类，实现目标接口
 * @author: 刘振华
 * @create: 2021-03-17 13:00
 **/
public class VolAdapter extends Voltage220V implements Voltage5V{
	@Override
	public int output5V() {
		int i = output220V();
		System.out.println("降压为5V");
		return i/44;
	}
}
